import React from 'react';

module.exports = [
  {
    key: 'id',
    title: '编号',
    dataType: 'int',
    primary: true,
    width: 70
  },{
    key: 'imgUrl',
    title: '图片URL',
    dataType: 'varchar',
    width: 400,
    render: (text) => {
      return <a href={text ? text : 'javascript:;'} target="_blank">{text}</a>
    }
  },{
    key: 'keysk',
    title: 'key',
    dataType: 'varchar',
    width: 360
  },
  {
    key: 'thumbnail',
    title: '缩略图',
    render: (text, record, index) => {
      return (
        <div style={{textAlign: 'center'}}>
            {text? <img src={text} /> : <span style={{color:'#F04134'}}>上传错误,地址不存在</span>}
        </div>
      )
    }
  },
];
